lcBlockAddHatch LiteCAD API

Adds a new hatch object into a block. Currently selected entities will be used as the hatch boundaries.

 HANDLE lcBlockAddHatch (
   HANDLE hBlock,
   LPCWSTR szFileName,
   LPCWSTR szPattern,
   double Scale,
   double RotAngle
 );

Parameters
hBlock
  Handle to a block.
szFileName
  Name of the file which contains hatch patterns definitions. For example, LiteCAD package has the "hatches.pat" file.
szPattern
  The meaning depends on the szFileName parameter. If the filename is specified, then szPattern is a name of hatch pattern, as written in the file.
If the filename is an empty string, then szPattern is a hatch pattern definition. See the code sample below.
Scale
  Scale of the pattern.
RotAngle
  Rotation angle of the pattern.

Return Value

  Handle to created hatch object or NULL if the function fails.

See Also

  Code sample